package com.zkyc.framework.website.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zkyc.framework.common.pojo.FileRefColumnData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FileRefColumnDataMapper extends BaseMapper<FileRefColumnData> {
    @Insert("<script>" +
            "INSERT INTO system_file_ref_column_data (column_data_id, file_id, file_type) VALUES" +
            "<foreach collection='list' item='item' index='index' separator=','>" +
            "(#{item.columnDataId}, #{item.fileId}, #{item.fileType})" +
            "</foreach>" +
            "</script>")
    int insertBatch(List<FileRefColumnData> fileRefColumnDataList);
}
